package com.link.base.base.productplan.service;

import com.link.base.base.productplan.dao.mybatis.mapper.ProdPlanMapper;
import com.link.base.base.productplan.model.ProdPlan;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 产品计划信息
 */
@Service
public class ProdPlanServiceImpl extends BasicServiceImpl<ProdPlan> implements ProdPlanService {

    @Resource
    private ProdPlanMapper prodPlanMapper;

    @Override
    public BasicMapper<ProdPlan> getBasicMapper() {
        return prodPlanMapper;
    }

    @Override
    public List<ProdPlan> queryByHeadId(Long id) {
        return prodPlanMapper.queryByHeadId(id);
    }

    @Override
    public void deleteByHeadId(Long id) {
        prodPlanMapper.deleteByHeadId(id);
    }
}
